/* eslint-disable object-curly-newline */
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import '@/assets/js/rem.js'
import '@/assets/css/reset.css'
import './assets/fonts/iconfont.css'

// 使用babel-plugin-import按需引入vant
import { Button, Search, Icon, Tabbar, TabbarItem, Swipe, SwipeItem, Grid,
  GridItem, PullRefresh, Toast, NavBar, GoodsActionIcon, GoodsActionButton,
  GoodsAction, Card, Tag, Popup, Stepper, Checkbox, CheckboxGroup, SwipeCell,
  SubmitBar, Dialog, Field } from 'vant'
/**
 * 引入axios并挂载到vue原型上,
 * 小型项目可以此种写法，大型项目请求和请求函数模块化Dialog
 * import axios from 'axios'
 * Vue.prototype.$http = axios
 */
// 使用vant
Vue.use(Button)
  .use(Icon)
  .use(Tabbar)
  .use(TabbarItem)
  .use(Swipe)
  .use(SwipeItem)
  .use(Search)
  .use(Grid)
  .use(GridItem)
  .use(PullRefresh)
  .use(Toast)
  .use(NavBar)
  .use(GoodsAction)
  .use(GoodsActionIcon)
  .use(GoodsActionButton)
  .use(Card)
  .use(Tag)
  .use(Popup)
  .use(Stepper)
  .use(Checkbox)
  .use(CheckboxGroup)
  .use(SwipeCell)
  .use(SubmitBar)
  .use(Dialog)
  .use(Field)
Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
